MicroQRCodeBarcodeShape Location
Gets or sets the location of the Micro QR Code Bar code Shape.
public Point3D Location {get;Set} |
Return value
Point3D | Location of the bar code |
Example
Copy
scanDocument = scanDeviceManager.CreateScanDocument(GetselectedDeviceUniqueName(), DistanceUnit.Millimeters, false);
if (scanDocument != null)
{
VectorImage vectorImage = scanDocument.CreateVectorImage("image1", DistanceUnit.Millimeters);
vectorImage.SetMarkSpeed(1000);
vectorImage.SetJumpSpeed(2000);
vectorImage.SetJumpDelay(100);
vectorImage.SetMarkDelay(100);
//Set Laser Delays
vectorImage.SetLaserOnDelay(10);
vectorImage.SetLaserOffDelay(10);
MicroQRCodeBarcodeShape mqBarcode = new MicroQRCodeBarcodeShape();
mqBarcode.Angle = 0;
mqBarcode.AutoExpand = true;
mqBarcode.CodeSize = MicroQRCodeSize.S15x15;
mqBarcode.EncodingMode = MicroQRCodeEncodingMode.Alphanumeric;
mqBarcode.ErrorCorrectionLevel = MicroQRCodeErrorCorrectionLevel.L;
mqBarcode.FlipHorizontally = false;
mqBarcode.FlipVertically = false;
mqBarcode.Height = 5;
mqBarcode.InvertImage = false;
mqBarcode.Location = new Point3D(0, 0, 0);
mqBarcode.MarkingOrder = MarkingOrder.HatchBeforeOutline;
mqBarcode.MaskPattern = MicroQRCodeMaskPattern.Default;
mqBarcode.QuietZone = false;
mqBarcode.Text = "SMAPI VER 4";
mqBarcode.HatchingDirection = BarcodeScanDirection.TopToBottom;
mqBarcode.HatchLineDirection = BarcodeScanDirection.LeftToRight;
mqBarcode.HatchPattern = BarcodeHatchPattern.CreateLineHatchPattern(0.5f, true, false);
vectorImage.AddBarcode(mqBarcode);
scanDocument.Scripts.Add(new ScanningScriptChunk("defaultScript", "ScanAll()"));
try
{
scanDocument.StartScanning();
}
catch
{
}
}